package com.roadjava.rating.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.roadjava.rating.bean.entity.LogsDO;
import com.roadjava.rating.bean.req.logs.LogsPageReq;
import com.roadjava.rating.bean.vo.LogsVO;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;


import java.util.List;

public interface LogsMapper extends BaseMapper<LogsDO> {

    // 添加 queryCount 方法声明
    Long queryCount(LogsPageReq pageReq);

    List<LogsVO> queryList(LogsPageReq pageReq);

    @Delete("DELETE FROM logs WHERE id = #{id}")
    void deleteById(@Param("id") Long id);
    // 其他方法
}
